//
// Created by zhupi on 2024/10/2.
//

#ifndef DEMO2_DIALOG_BASE_COMMON_H
#define DEMO2_DIALOG_BASE_COMMON_H

#include <QDialog>
#include <QPushButton>
#include <QTabWidget>

class DialogBaseCommon : public QDialog
{
    Q_OBJECT
public:
    explicit DialogBaseCommon(const QString &title, QWidget *parent = nullptr);
    QWidget *AddTab(const QString &name);
//    void AddleftButton(const QString &name,)
signals:

private:
    void InitWidget();

private:
    QTabWidget *tabWidget_ {nullptr};
    QPushButton *okButton_ {nullptr};
    QPushButton *cancelButton_ {nullptr};
};


#endif //DEMO2_DIALOG_BASE_COMMON_H
